package com.smap.vector;

import com.smap.core.XY;

public class Point extends Geometry {

	public Point() {
		super();
	}

	public Point(XY xy) {
		this(xy.x, xy.y);
	}

	public Point(double x, double y) {
		super();
		this.coordinates.add(new XY(x, y));
	}

	@Override
	public boolean contains(XY coordinate) {
		return super.contains(coordinate);
	}

	public XY toXY() {
		return this.coordinates.get(0);
	}

}
